package com.huamoxi.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.huamoxi.entity.User;
import com.huamoxi.response.UserInfoResponse;
import com.huamoxi.result.Result;

public interface UserService extends IService<User> {

    /**
     * 用户注册
     */
    Result<User> register(User user);

    /**
     * 通过token查看用户详情
     */
    Result<UserInfoResponse> getUserInfo(String token);
}
